// OrderBaseWithDetailsVO.java
package com.chixing.entity.vo;

import com.chixing.entity.OrderBase;
import com.chixing.entity.OrderDetail;

import java.util.List;

/**
 * 订单基础信息与详情信息的视图对象
 */
public class OrderBaseWithDetailsVO {
    private OrderBase orderBase;
    private List<OrderDetail> orderDetails;

    public OrderBaseWithDetailsVO() {}

    public OrderBaseWithDetailsVO(OrderBase orderBase, List<OrderDetail> orderDetails) {
        this.orderBase = orderBase;
        this.orderDetails = orderDetails;
    }

    // Getter and Setter
    public OrderBase getOrderBase() {
        return orderBase;
    }

    public void setOrderBase(OrderBase orderBase) {
        this.orderBase = orderBase;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }
}
